# coding: utf-8
"""
@python version : python3.10
@file name      : app04.py
@date           : 2024/5/15 14:31
@author         : ziyang.yang@aliyun.com
@gitee          : https://gitee.com/ziyangyang1318
@blog           : blog.yangziyang.top
@describe       : 
"""
from typing import Optional, List
from pydantic import BaseModel, Field, validator, ValidationError
from fastapi import APIRouter
from fastapi import Form

app04 = APIRouter()


@app04.post('/login')
async def login(username: str = Form(), password: str = Form()):
    return {'username': username, 'password': password}
